package com.Test;

/**
 * Description:
 * Copyright:   Copyright (c)2019
 * Company:     zefu
 *
 * @author: 张李鑫
 * @version: 1.0
 * Create at:   2022-01-12 10:19:48
 * <p>
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2022-01-12     张李鑫                     1.0         1.0 Version
 */
public class Temp0 {
    static  class Animal{
        public void move(){
            System.out.println("the animal is moving");
        }
    }

   static class Dog extends Animal{
        @Override
        public void move(){
            System.out.println("the dog can run");
        }
        public void bark(){
            System.out.println("the dog can bark");
        }
    }

    public static class TestDog{
        public static void main(String args[]){
            Animal a = new Animal();
            Animal b = new Dog();
            a.move();
            b.move();
        }
    }

}
